package net.hxz.modules.services.impl;

import net.wy.commons.web.WebContextFactory;

public class BaseService {
	
	public String getBasePath(){
		return WebContextFactory.getWebContext().getRequest().getContextPath();
	}
	
	/**
	 * 校验一个实例的Id是否有效
	 * @param id
	 * @return
	 */
	protected boolean checkPojoId( long id ){
		return id > 0;
	}
	
}
